package com.github.m6d21.sso.dao.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.m6d21.sso.model.role.entity.Role;
import com.github.m6d21.sso.model.role.qo.RoleQO;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *<p>
 *UserMapper
 *</p>
 *
 * @author liuyang
 * @date 2018-12-05 Wed 22:11:00
 * @since 1.0.0
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    Role get(@Param("id") Integer id);

    List<Role> find(RoleQO roleQO);

    List<Role> query(RoleQO roleQO);

    int insertRole(Role permission);

    int insertSelectiveRole(Role permission);

    int updateRoleById(Role permission);

    int updateSelectiveRoleById(Role permission);

    int deleteRoleById(@Param("id") Integer id);

    int deleteRoleByIds(@Param("ids") List<Integer> ids);
}
